<!-- 待付款 -->
<template>
    <div class="page-box h100 display-flex czbj">
      <p class="title-label mb10">待付款</p>
      <dxtable
        :dataJson="dataJson"
        :portUrl="portUrl"
        :formJson="formJson"
        :hidebj="true"
        :qx="qx"
        ref="databale"
      ></dxtable>
    </div>
  </template>
  <script lang="ts" setup>
  import dxtable from "../../../components/util/dxtable.vue";
  import sort from "../../../components/util/sort.vue";
  import { dxget, dxpost } from "../../../util/index";
  import { NButton, NImage, NTag } from "naive-ui";
  import { h, ref, reactive } from "vue";
  const databale = ref();
  const showModal = ref(false);
  const rowData = ref({})
  const shhehsdrt = ref();
  const hjshsd = ref()
  const initeer = () => {
    databale.value.initDataExpose();
  };
  let zhidfds = [
      {
        label:"微信",
        value:"1"
      },{
        label:"支付宝",
        value:"2"
      },{
        label:"平台币",
        value:"3"
      }
    ]
  const shjjseft = ref("1");
  let dataJson = [
  
  {
      title: "订单编号",
      key: "ddON",
      width:"180"
    },
    {
      title: "商品名称",
      key: "c.title",
      "search": true,
      width:200,
      render(row){
        return row.jstitle
      }
    },
    {
      title: "单价",
      key: "jsdanjia",
    }, {
      title: "数量",
      key: "number",
    },
    {
      title: "购买人姓名",
    key: "b.name",
    search: true,
    render(row) {
      return row.uname;
    },
    },
    {
      title: "电话",
      key: "uphone",
    },
    {
      title: "操作时间",
      key: "addTime",
      width: 150,
    },
  ];
  
  const qx = {
    DeletePermissionID: "234567", //删除
    EditPermissionIdentifier: "234567", // 编辑
    NewPermissionIdentifier: "234567", // 新建
    ViewPermissionID: "234567", // 查看
  };
  const portUrl = "jyc/dingdanzhuangtai/dingdanzhuangtai?type=2&state=1";
  
  let formJson = reactive([]);
  // 获取字典内容
  // const xtgxxmfl = async () => {
  //   const { data }: any = await dxget("dxgjAdmin/getzd", { name: 'xtgxxmfl' })
  //   dataJson[2].options = [
  //     {
  //       label: "全部",
  //       value: ""
  //     },
  //     ...data
  //   ]
  //   formJson[2].options = data
  //   xmlxSelect.value = data
  //   console.log(data);
  // }
  // xtgxxmfl()
  </script>
  <style scoped></style>
  <style>
  .dfdsrtyrytyt {
    width: 400px;
  }
  </style>
  